package 正则表达式;

public class 正则表达式应用spilt和replaceALL {
    public static void main(String[] args) {
        //split是将你要分割的内容分割成对应的数量
        String name="朱146佳asfsafas铖164";
        String[] name1 = name.split("\\w+");
        for (int i = 0; i < name1.length; i++) {
            System.out.println(name1[i]);
        }
        System.out.println(name.replaceAll("\\w+", ""));//不改变name
    }
}
